package ecoll.client.widgets;

import com.google.gwt.user.client.ui.Grid;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Label;

public class QuizServerPanel extends Grid {

	public QuizServerPanel() {
		super(2, 1);
		setWidget(1, 0, new HorizontalPanel());
	}

	public void setFirtsRow(String message) {
		Label firstRow = new Label(message);
		firstRow.setStyleName("serverInfo");
		setWidget(0, 0, firstRow);
		setWidget(1, 0, new HorizontalPanel());
	}

	public void setSecondRow(String message) {
		Label secondRow = new Label(message);
		secondRow.setStyleName("serverInfo");
		((HorizontalPanel) getWidget(1, 0)).add(secondRow);
	}
}
